package com.aispeech.task.api.exceptions;

import com.aispeech.task.api.data.enums.Errors;

public class StaticError extends RuntimeException {
    private Errors error;

    public StaticError(Errors error) {
        super(error.getErrorDesc());
        this.error = error;
    }

    public Errors getError() {
        return error;
    }
}
